package day03;

/**
 * 演示算术运算符
 */
public class OperDemo {
    public static void main(String[] args) {
        System.out.println(5%2);
        System.out.println(2%5);
        System.out.println(4%2);
        System.out.println(0%2);

        int a = 5,b=5;
        a++;
        ++b;
        System.out.println(a);
        System.out.println(b);

        int c = 5,d = 5;
        int f = c++;
        int g = ++d;
        System.out.println(c);
        System.out.println(d);
        System.out.println(f);
        System.out.println(g);

        int a1 = 5,b1 = 5;
        a1--;
        --b1;
        System.out.println(a1);
        System.out.println(b1);

        int c1 = 5,d1 = 5;
        int e1 = c1--;
        int f1 = --d1;
        System.out.println(c1);
        System.out.println(d1);
        System.out.println(e1);
        System.out.println(f1);





    }
}
